package com.zhuxulin.tab.bluetooth;

public interface ISendMsg {
	/**
	 * @param msg
	 * @return true if send successful or false
	 */
	public boolean sendMessage(String msg);

	/**
	 * @param buffer
	 * @return true if send successful or false
	 */
	public boolean sendMessage(byte[] buffer);

	/**
	 * send on byte like 0x93
	 * 
	 * @param oneByte
	 * @return true if send successful or false
	 */
	public boolean sendMessage(int oneByte);
	/**
	 * send a array
	 * @param bytes
	 * @return true if send successful or false
	 */
	public boolean sendMessage(int[] bytes);

	/**
	 * send a byte array from offset to offset+len
	 * 
	 * @param buffer
	 * @param offset
	 * @param len
	 * @return true if send successful or false
	 */
	public boolean sendMessage(byte[] buffer, int offset, int len);
//	public boolean sendMessage(File file);
}
